<h1>Listing labs</h1>

<table>
  <tr>
    <th>Name</th>
    <th>Intro</th>
    <th>Path</th>
    <th>Exec</th>
  </tr>

<% for lab in @labs %>
  <tr>
    <td><%=h lab.name %></td>
    <td><%=h lab.intro %></td>
    <td><%=h lab.path %></td>
    <td><%=h lab.exec %></td>
    <td><%= link_to 'Show', lab %></td>
    <td><%= link_to 'Edit', edit_lab_path(lab) %></td>
    <td><%= link_to 'Destroy', lab, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New lab', new_lab_path %>
